package ntd.util.modular.things.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import ntd.util.config.common.entity.BaseEntityMybatis;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * IOT-设备数据
 * </p>
 *
 * @author liuwenju
 * @since 2022-09-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("things_device_data")
@ApiModel(value = "DeviceData对象", description = "IOT-设备数据")
public class DeviceData extends BaseEntityMybatis<DeviceData> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("上报时间")
    @TableField("report_time")
    private LocalDateTime reportTime;

    @ApiModelProperty("设备编码")
    @TableField("device_code")
    private String deviceCode;

    /** 数据类型 */
    private String cn;

    /** 系统类型 */
    private String st;

    /** 数据来源ip */
    private String originIp;

}
